/*
 * @Descripttion: 
 * @version: 
 * @Author: turingchang
 * @Date: 2020-12-23 15:10:06
 * @LastEditors: turingchang
 * @LastEditTime: 2020-12-23 15:44:29
 */

module.exports = app => {
    const {router,controller} = app;
    const namespace = `/api/${app.config.xsoaHandler.localServerName}/job/group`;
    const jobGroupRouter = router.namespace(namespace);
    jobGroupRouter.get('/get', controller.job.jobGroup.get);
    jobGroupRouter.post('/', controller.job.jobGroup.add);
    jobGroupRouter.put('/', controller.job.jobGroup.edit);
    
    // router.redirect('/news/list','/news');//重定向使用router而不是adminRouter
} 